﻿using Core;
using Core.Domain.Directory;
using System.Collections.Generic;

namespace Services.Directory
{
    /// <summary>
    /// 省份服务接口
    /// </summary>
    public partial interface IStateProvinceService
    {
        /// <summary>
        /// 删除省份
        /// </summary>
        void DeleteStateProvince(StateProvince stateProvince);

        /// <summary>
        /// 根据主键获取省份
        /// </summary>
        /// <returns>State/province</returns>
        StateProvince GetStateProvinceById(int stateProvinceId);
        
        /// <summary>
        /// 获取所有省份
        /// </summary>
        IList<StateProvince> GetStateProvinces();

        /// <summary>
        /// 获取所有省份(分页)
        /// </summary>
        IPagedList<StateProvince> GetStateProvincesByCountryId(string name = "", int pageIndex = 0, int pageSize = int.MaxValue);

        /// <summary>
        /// 新增省份
        /// </summary>
        void InsertStateProvince(StateProvince stateProvince);

        /// <summary>
        /// 更新省份
        /// </summary>
        void UpdateStateProvince(StateProvince stateProvince);
    }
}
